<!--  -->
<template>
  <section class="recom-container">
    <dl>
      <dt>{{topContent.title}}</dt>
      <dd
        v-for="(item,index) of topContent.address"
        :key='index'
      >{{item}}</dd>
    </dl>
    <div class="content clearfix">
      <a
        href=""
        class="good"
      >
        <img
          src="https://img.meituan.net/iphoenix/7192120617bb7279559ef980852ae8a161748.jpg@740w_416h_1e_1c"
          class="product-img"
        >
        <img
          src="https://img.meituan.net/avatar/dbf2c55a6b7dc81f4193fc8b4f4e6858656159.jpg@200w_200h_1e_1c"
          alt=""
          class="head-img"
        >

        <p class="title">花园路洪楼商圈温馨家园</p>
        <p>整套两居室 · 可住4人 | 花园路</p>
        <p class="price"><span class="price-icon">￥</span>268</p>
      </a>
      <a
        href=""
        class="good"
      >
        <img
          src="https://img.meituan.net/iphoenix/7192120617bb7279559ef980852ae8a161748.jpg@740w_416h_1e_1c"
          class="product-img"
        >
        <img
          src="https://img.meituan.net/avatar/dbf2c55a6b7dc81f4193fc8b4f4e6858656159.jpg@200w_200h_1e_1c"
          alt=""
          class="head-img"
        >

        <p class="title">花园路洪楼商圈温馨家园</p>
        <p>整套两居室 · 可住4人 | 花园路</p>
        <p class="price"><span class="price-icon">￥</span>268</p>
      </a>
      <a
        href=""
        class="good"
      >
        <img
          src="https://img.meituan.net/iphoenix/7192120617bb7279559ef980852ae8a161748.jpg@740w_416h_1e_1c"
          class="product-img"
        >
        <img
          src="https://img.meituan.net/avatar/dbf2c55a6b7dc81f4193fc8b4f4e6858656159.jpg@200w_200h_1e_1c"
          alt=""
          class="head-img"
        >
        <p class="title">花园路洪楼商圈温馨家园</p>
        <p>整套两居室 · 可住4人 | 花园路</p>
        <p class="price"><span class="price-icon">￥</span>268</p>
      </a>
      <a
        href=""
        class="good"
      >
        <img
          src="https://img.meituan.net/iphoenix/7192120617bb7279559ef980852ae8a161748.jpg@740w_416h_1e_1c"
          class="product-img"
        >
        <img
          src="https://img.meituan.net/avatar/dbf2c55a6b7dc81f4193fc8b4f4e6858656159.jpg@200w_200h_1e_1c"
          alt=""
          class="head-img"
        >
        <p class="title">花园路洪楼商圈温馨家园</p>
        <p>整套两居室 · 可住4人 | 花园路</p>
        <p class="price"><span class="price-icon">￥</span>268</p>
      </a>
      <a
        href=""
        class="good"
      >
        <img
          src="https://img.meituan.net/iphoenix/7192120617bb7279559ef980852ae8a161748.jpg@740w_416h_1e_1c"
          class="product-img"
        >
        <img
          src="https://img.meituan.net/avatar/dbf2c55a6b7dc81f4193fc8b4f4e6858656159.jpg@200w_200h_1e_1c"
          alt=""
          class="head-img"
        >
        <p class="title">花园路洪楼商圈温馨家园</p>
        <p>整套两居室 · 可住4人 | 花园路</p>
        <p class="price"><span class="price-icon">￥</span>268</p>
      </a>
      <a
        href=""
        class="good"
      >
        <img
          src="https://img.meituan.net/iphoenix/7192120617bb7279559ef980852ae8a161748.jpg@740w_416h_1e_1c"
          class="product-img"
        >
        <img
          src="https://img.meituan.net/avatar/dbf2c55a6b7dc81f4193fc8b4f4e6858656159.jpg@200w_200h_1e_1c"
          alt=""
          class="head-img"
        >
        <p class="title">花园路洪楼商圈温馨家园</p>
        <p>整套两居室 · 可住4人 | 花园路</p>
        <p class="price"><span class="price-icon">￥</span>268</p>
      </a>
    </div>

  </section>
</template>

<script>
export default {
  data() {
    return {
      topContent: {
        title: "推荐民宿",
        address: [
          "天津",
          "大连",
          "济南",
          "太原",
          "石家庄",
          "秦皇岛",
          "呼和浩特",
          "潍坊",
          "保定",
          "泰安"
        ]
      }
    };
  },

  methods: {}
};
</script>
<style lang='scss' scoped>
.recom-container {
  width: 1190px;
  background-color: #fff;
  margin: 40px auto;
  dl {
    width: 100%;
    height: 44px;
    line-height: 44px;
    color: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: linear-gradient(
        to right,
        rgb(243, 182, 74) 2%,
        rgb(242, 197, 69) 97%
      )
      rgb(243, 182, 74);
    dd,
    dt {
      float: left;
      padding: 0 5px;
    }
    dt {
      font-size: 18px;
      margin-left: 13px;
      margin-right: 10px;
    }
  }
  div {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: space-between;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-sizing: border-box;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 5px;
    a {
      width: 33.33%;
      box-sizing: border-box;
      padding: 10px;
      height: 314px;
      position: relative;
      &:hover {
        background: #f4f4f4;
        -webkit-transition: background-color 0.5s;
        -ms-transition: background-color 0.5s;
        transition: background-color 0.5s;
        border-radius: 4px;
      }
      .product-img {
        width: 100%;
        border-radius: 4px;
      }
      .head-img {
        width: 12%;
        border-radius: 50%;
        position: absolute;
        top: 198px;
        right: 30px;
        border: 4px solid #fff;
      }
    }
  }
}
.clearfix {
  overflow: auto;
  _height: 1%;
}
</style>
